package com.simon.jkxj.ui.diet;

import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import com.simon.jkxj.R;
import android.content.Intent;
import android.view.View;
import androidx.cardview.widget.CardView;

public class DietGuidanceActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_diet_guidance);
        CardView cardBloodSugar = findViewById(R.id.card_blood_sugar);
        cardBloodSugar.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(DietGuidanceActivity.this, BloodSugarRecordActivity.class);
                startActivity(intent);
            }
        });
        CardView cardBloodPressure = findViewById(R.id.card_blood_pressure);
        cardBloodPressure.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(DietGuidanceActivity.this, BloodPressureRecordActivity.class);
                startActivity(intent);
            }
        });
        CardView cardQuitSmoking = findViewById(R.id.card_quit_smoking);
        cardQuitSmoking.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(DietGuidanceActivity.this, QuitSmokingActivity.class);
                startActivity(intent);
            }
        });
        CardView cardOnlineGuidance = findViewById(R.id.card_online_guidance);
        cardOnlineGuidance.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(DietGuidanceActivity.this, com.simon.jkxj.ui.consultation.ChatActivity.class);
                startActivity(intent);
            }
        });
        findViewById(R.id.btn_back).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }
} 